import { createRouter, createWebHistory } from 'vue-router'
import type {RouteRecordRaw} from 'vue-router'
const routes:Array<RouteRecordRaw> =[
    {
      path: '/home',
      name: 'home',
      component:()=>import('../views/HomeView.vue')
    },
    {
      path: '/',
      name: '/login',
      component: ()=>import('../views/Login.vue')
    },
    {
      path:'/myuser',
      name:'Myuser',
      component:()=>import('../views/MyuserView.vue')
    },
    {
      path:'/temp/:id',
      name:'temp',
      component:()=>import('../views/temView.vue')
    }
  ]
const  router = createRouter({
   history: createWebHistory(import.meta.env.BASE_URL),
   routes
})
export default router
